Skip to content

Conversation

@jaclync
Copy link
Contributor

@jaclync jaclync commented Jan 10, 2023

Part of #8558
Based on #8600

Description

Why

After the user creates a store, they might want to choose a proper domain for their new store. The domain settings screen shows the domains of a WPCOM site, and allows the merchant to add a domain either using their domain credit or the checkout flow similar to the Jetpack app.

Networking layer changes

More technical details at the spike: pe5sF9-Ug-p2

This PR just contains the Yosemite layer changes for two actions required to show the domain settings UI:

  • DomainAction.loadDomains: this loads the site's domains, including the free staging domain
  • PaymentAction.loadSiteCurrentPlan: this loads the site's WPCOM plans, and returns the current plan to determine if the site has domain credit so that the user can pick a domain for free (available from certain WPCOM plans)

Testing instructions

Prerequisite: a WC store with a WPCOM plan is required

  • Log in if needed, and continue with a WPCOM store
  • Go to the Menu tab
  • Tap on the settings CTA --> there should be a Domain row under the store settings section
  • Tap the Domain row --> a modal should be shown with a free staging domain at the top with the actual site domain. most likely the site also has a *.wordpress.com domain, so the bottom CTA isn't shown for now

Screenshots


  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

…main-settings-yosemite

* feat/8558-domain-settings-networking:
  Fix build errors.

# Conflicts:
#	Yosemite/Yosemite/Stores/PaymentStore.swift
#	Yosemite/YosemiteTests/Mocks/Networking/Remote/MockDomainRemote.swift
#	Yosemite/YosemiteTests/Mocks/Networking/Remote/MockPaymentRemote.swift
@jaclync jaclync added the type: task An internally driven task. label Jan 10, 2023
@jaclync jaclync added this to the 11.9 milestone Jan 10, 2023
@wpmobilebot
Copy link
Collaborator

You can test the changes from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr8601-91341d9 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@jaclync jaclync mentioned this pull request Jan 10, 2023
35 tasks
Base automatically changed from feat/8558-domain-settings-networking to trunk January 10, 2023 05:54
@selanthiraiyan selanthiraiyan self-assigned this Jan 10, 2023
Copy link
Contributor

@selanthiraiyan selanthiraiyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as described in the testing instructions. 🚢

@jaclync jaclync modified the milestones: 11.9 ❄️, 12.0 Jan 16, 2023
@jaclync jaclync merged commit 72a96db into trunk Jan 16, 2023
@jaclync jaclync deleted the feat/8558-domain-settings-yosemite branch January 16, 2023 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants